package com.lzj.dao;

import com.lzj.entity.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @autor:lzj
 * @date:2022/2/26
 */
public interface EmployeeMapper {
    Employee loadEmpByUsername(String username);
    int doReg(Employee employee);
    List<Employee> getAllEmpsByStatus(String status);
    int approveaccount(@Param("employeeid") int employeeid,@Param("status") String status);
    List<Employee> getAllEmps(@Param("employee") Employee employee,@Param("page") int page,@Param("pageSize") int pageSize);//分页查询
    Long getTotal(Employee employee);//获取记录数
    int updateEmp(@Param("employeeid") int id,@Param("status") String status);//修改用户状态
    List<Employee> getEmpsByDepId(@Param("departmentid") int depId);
    List<Integer> getEmpsIdByDepName(@Param("employeename") String employeename);
//    List<Employee> getEmpNameByEmpId(@Param("empsIds") List<Integer> empsId);
    List<Employee> getEmpsByEmpId(@Param("empById") List<Integer> empById);//通过id获取用户信息
    int updatePassword(@Param("password") String newpassword,@Param("employeeid") int employeeid);//修改密码
}
